<?php $this->pageHeader('Forespørsler om vaktbytte (midlertidig)'); ?>

<?php echo $this->flashMessage()->renderMessages(); ?>

<table class="exchange_list">
  <thead>
    <tr>
        <th>Fra</th>
        <th>Til</th>
        <th>Vakt Rolle</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($this->exchanges as $exchange): ?>
    <tr>
        <td><?php echo $exchange->SourceMember->first_name . ' ' . $exchange->SourceMember->last_name ?></td>
        <td><?php echo $exchange->TargetMember->first_name . ' ' . $exchange->TargetMember->last_name ?></td>
        <td><?php echo $exchange->shift_role_id; ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
